Software Development
Python First Class Functions and Lambdas
Functions in Python: Gaining a Deeper Understanding of Python Functions
Functions in Python: Introduction
Functions in Python: Working with Advanced Features of Python Functions

Functions in Python: Gaining a Deeper Understanding of Python Functions

Course Number:
it_pyfcaldj_02_enus
Lesson Objectives

Functions in Python: Gaining a Deeper Understanding of Python Functions

  • discover the key concepts covered in this course
  • specify global and local variables in Python
  • recall what it means to pass arguments by value
  • recall what it means to pass arguments by reference
  • work with the math and os modules in Python
  • work with the random and datetime modules in Python
  • pass functions as input arguments to other functions
  • work with functions that accept any number of arguments
  • return functions from other functions
  • define and invoke lambda functions
  • define, invoke, and discard lambdas
  • use lamdas as an input to the built-in filter() function
  • describe global and local variable characteristics, argument passing techniques, first-class functions, and lambdas

Overview/Description

Explore Python functions in more detail, focusing on nuances such as argument passing by value and reference, and local and global variables. Examine how functions are first class citizens in Python like other data types, and how to work with use and throw functions using lambdas.



Target

Prerequisites: none

Functions in Python: Introduction

Course Number:
it_pyfcaldj_01_enus
Lesson Objectives

Functions in Python: Introduction

  • discover the key concepts covered in this course
  • recall and implement custom functions
  • define, invoke, and name functions
  • recall how functions work as objects
  • define and invoke functions with input arguments
  • reference global variables from within a function
  • recall the characteristics of working with positional arguments
  • return information from functions
  • write functions with multiple return statements
  • return complex data types from functions
  • specify keyword arguments while invoking functions
  • recall nuances in invoking functions using keyword arguments
  • specify default values for function arguments
  • implement functions with *args variable length positional arguments
  • combine positional and variable length arguments
  • implement functions with **kwargs variable length keyword arguments
  • recall characteristics of functions, input arguments, and return values

Overview/Description

Explore the concept of code reuse using Python functions, including function definition, passing arguments to functions, and returning values from functions. Discover how to invoke functions using positional and keyword arguments.



Target

Prerequisites: none

Functions in Python: Working with Advanced Features of Python Functions

Course Number:
it_pyfcaldj_03_enus
Lesson Objectives

Functions in Python: Working with Advanced Features of Python Functions

  • discover the key concepts covered in this course
  • invoke a function from within its body
  • implement terminating conditions and return values for recursive functions
  • write simple programs that involve recursive calls
  • implement generator functions using the yield keyword
  • apply generators to create infinite sequences
  • define closures in Python
  • create closures that have access to local state variables
  • define decorators to modify pre-existing code
  • customize decorators that work with functions with different numbers of input arguments
  • chain multiple decorators that apply to the same function
  • recall characteristics of recursion, generators, and closures

Overview/Description

Explore advanced Python function topics such as recursion, closures, using generator functions to generate sequences, and using decorators to add functionality to code.



Target

Prerequisites: none

Close Chat Live